package com.tsd.system.dao;

import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUserOrgRight;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysUserOrgRightMapper
 *
 * @author 15971
 * @date 2019/12/30 16:10:02
 */
public interface SysUserOrgRightMapper {

    SysUserOrgRight selectByPrimaryKey(Long id);

    SysUserOrgRight selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(SysUserOrgRight record);

    int insertSelective(SysUserOrgRight record);

    int updateByPrimaryKey(SysUserOrgRight record);

    int updateByPrimaryKeySelective(SysUserOrgRight record);

    List<SysUserOrgRight> selectByEntity(SysUserOrgRight record);

    List<SysUserOrgRight> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysUserOrgRight> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysUserOrgRight> selectByParams(@Param("params") Map<String, Object> params);

    List<SysUserOrgRight> selectByUserSid(@Param("user_sid") String user_sid);

    void deleteByIdList(BatchDeleteLogicVo logicVo);

    void insertList(List<SysUserOrgRight> list);

    void updateList(List<SysUserOrgRight> list);
}
